<#compress>
    <@override name="title">餐饮品牌信息维护</@override>
    <@override name="viewcss">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/scripts/plugins/bootstrap-switch/css/bootstrap-switch.min.css"/>
    </@override>
    <@override name="viewbody">
    <div class="row">
        <div class="col-md-12">
            <h3 class="page-title">
                餐饮品牌信息维护
                <small>餐饮品牌基本信息.</small>
            </h3>
            <ul class="page-breadcrumb breadcrumb">
                <li>
                    <i class="fa fa-home"></i>
                    <a href="${ctx}/admin/home">
                        首页
                    </a>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <a href="${ctx}/admin/booking/dining">
                        餐饮品牌
                    </a>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <a href="#">${brand.name!}－品牌信息 </a>
                </li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="portlet box grey">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-reorder"></i>${brand.name!}的品牌信息
                    </div>
                </div>
                <div class="portlet-body">
                    <form action="${ctx}/admin/booking/dining/info_save" method="post" class="form-horizontal form-bordered">
                        <div class="form-body">
                            <input type="hidden" name="brand.id" value="${brand.id!}">

                            <div class="form-group">
                                <label class="control-label col-md-4" for="booking">开放预定：</label>

                                <div class="col-md-8">
                                    <input type="checkbox" class="make-switch" id="booking" name="booking"
                                        <#if brand.booking?? && brand.booking> checked </#if> data-on-label="<i class='fa fa-check'></i>"
                                           data-off-label="<i class='fa fa-times'></i>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-4" for="consumption">人均消费：</label>

                                <div class="col-md-8">
                                    <input type="text" id="consumption" name="brand.consumption" value="${brand.consumption!}"
                                           class="form-control input-medium">
                                </div>
                            </div>
                        </div>
                        <div class="form-actions fluid">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="col-md-offset-3 col-md-9">
                                        <button type="submit" class="btn purple"><i class="fa fa-check"></i> 保存</button>
                                        <a href="${ctx}/admin/booking/dining" class="btn default"> <i class="fa  fa-arrow-circle-o-left"></i>返回</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
    </@override>
    <@override name="viewmodule">dining_info</@override>
    <@extends name="../../_basic/main.ftl"></@extends>
</#compress>